package com.dao;

import com.pojo.TbGoods;
import com.pojo.TbGoodsKz;

import java.sql.SQLException;
import java.util.List;

public interface GoodsDao {

    //添加商品快照
    long addGoodsKz(TbGoodsKz tbGoodsKz) throws SQLException;


    //添加商品，实际上是将快照id添加到商品表中的
    long addGoods(long kzid) throws SQLException;
    int getGoodsCountByTypeId(int typeId);

    List<TbGoods>getGoodsByTypeIdAndLimit(int typeid, int start, int rows);

    //根据id查询商品信息
    TbGoods getGoodById(int id);
}
